<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>获取一个外部迭代器</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.iteratoraggregate.html">聚合式迭代器</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.arrayaccess.html">数组式访问</a></div>
 <div class="up"><a href="class.iteratoraggregate.html">聚合式迭代器</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="iteratoraggregate.getiterator" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IteratorAggregate::getIterator</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.0.0)</p><p class="refpurpose"><span class="refname">IteratorAggregate::getIterator</span> &mdash; <span class="dc-title">获取一个外部迭代器</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-iteratoraggregate.getiterator-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">abstract</span> <span class="modifier">public</span> <span class="type"><a href="class.traversable.html" class="type Traversable">Traversable</a></span> <span class="methodname"><strong>IteratorAggregate::getIterator</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   返回一个外部迭代器。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-iteratoraggregate.getiterator-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-iteratoraggregate.getiterator-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   实现了 <strong class="classname">Iterator</strong> 或 <strong class="classname">Traversable</strong> 接口的类的一个实例。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-iteratoraggregate.getiterator-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   失败时抛出 <a href="class.exception.html" class="classname">Exception</a>。
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.iteratoraggregate.html">聚合式迭代器</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.arrayaccess.html">数组式访问</a></div>
 <div class="up"><a href="class.iteratoraggregate.html">聚合式迭代器</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
